package com.hashset;

public class ChangeDemo {
    public static void main(String[] args) {
        System.out.println(getTotal(1, 2, 3));
    }

    public static Object getTotal(Integer ... arrays) {
        int total = 0;
        for (int i = 0; i < arrays.length; i++) {
            total = arrays[i] + total;
        }
        return total;
    }
}
